package Date131;

import java.util.Scanner;
import java.lang.Math;

public class Demo1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        // Scanner sc = new Scanner(System.in);
        // int a = sc.nextInt();

        // int a=2;
        // int b =2;
        int c = (int) Math.pow(a, b); 
        System.out.println(c);
    }
}
